package com.kirk.cts.ui.view.panel;

import javax.annotation.Resource;

/**
 * <p> AbstractListPage.java </p>
 *
 * @version 1.0.0
 * @Author kirkliu
 * @Date 2020-09-01 23:18
 * @Description 抽象类
 */
public abstract class AbstractListPage extends AbstractBaseListPage {
    private static final long serialVersionUID = 1L;
    /**
     * 系统TabPanel
     */
    @Resource(name = "systemTabPanel")
    private SystemTabPanel systemTabPanel;
    /**
     * 系统容器
     */
    @Resource(name = "pageContainer")
    private PageContainer pageContainer;

    /**
     * Layout for this AbstractPage is BorderLayout. <br/>
     * getTopPane() -- north <br/>
     * getCenterPane() -- center <br/>
     * getBottomPane() -- south <br/>
     * getLeftPane() -- west <br/>
     * getRightPane() -- ease <br/>
     */
    protected AbstractListPage() {
        super();
    }

    /**
     * 显示系统
     */
    public void showTabPanel(int index) {
        pageContainer.show(systemTabPanel.getPageId());
        systemTabPanel.getTabbedPane().setSelectedIndex(index);
    }

}
